home *** CD-ROM | disk | FTP | other *** search
- //This sample main program may be used to test C++ code generation scripts.
- //In With Class load cppcar.omt. Run the scripts cpphead.sct and cppfunc.sct
- //or borland scripts.
- //Create a project in your C++ environment. Add carmain.cpp, vehicle.cpp,
- //car.cpp, motor.cpp, passenge.cpp, tire.cpp, and cellular.cpp.
- //Comments and suggestions are solicited Richard Felsinger, RCF Associates
- //960 Scottland Dr, Mt Pleasant, SC 29464 tele 803-881-3648 71162.755@compuserve.com
-
- #include "car.h"
- #include <iostream.h>
-
- int main ()
- {
- Car car1;
- cout << car1;
-
- Car car2 (car1);
- cout << car2;
-
- Car car3 (55, 10);
- cout << car3;
-
- Car car4;
- cin >> car4;
- cout << car4;
-
- if (car1 == car4) cout << "Cars are equal." << "\n";
- else cout << "Cars are not equal." << "\n";
-
- return 0;
- }
-